package com.xyauto.theme.fragment

import com.xyauto.theme.R
import com.xyauto.theme.utils.setImageUrl
import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder

/**
 * created by gongziyi on 2024/6/21 15:42
 */
class BannerViewAdapter : BaseBannerAdapter<String>() {
    override fun bindData(holder: BaseViewHolder<String>?, data: String, position: Int, pageSize: Int) {
        holder?.setImageUrl(R.id.m_item_icon, data)
    }

    override fun getLayoutId(viewType: Int): Int = R.layout.item_detail_icon
}